package com.wzp.yyptproject.repository;

import com.wzp.yyptproject.entity.KeShi;
import com.wzp.yyptproject.entity.PingLun;
import com.wzp.yyptproject.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PingLunRepository extends JpaRepository<PingLun,Integer> {
    List<PingLun> findAndByUid(Integer uid);
   List<PingLun> findAndByPstatus(Integer status);
    Page<PingLun> findAll(Pageable pageable);
    String deleteByPid(Integer pid);


}
